import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import { ElContainer, ElForm, ElFormItem, ElButton, ElInput } from 'element-plus'
import 'element-plus/lib/theme-chalk/index.css'
import './assets/styles/iconfont.css'
import './assets/styles/reset.css'

import base from '@/utils/utils'

const app = createApp(App)

// 全局挂载
app.config.globalProperties.$base = base

app
  .use(store)
  .use(router)
  .use(ElContainer)
  .use(ElForm)
  .use(ElFormItem)
  .use(ElInput)
  .use(ElButton)
  .mount('#app')
